package com.enterprise.application.spider;

import com.enterprise.application.di.spring.SpringLocator;
import com.enterprise.support.utility.FileUtility;
import com.enterprise.support.utility.Function;
import com.enterprise.support.utility.WebUtility;
import org.webharvest.utils.Catalog;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2009-11-9
 * Time: 20:02:02
 * To change this template use File | Settings | File Templates.
 */
public class ScraperFacadeImpl extends Catalog {
    private static ScraperFacadeImpl facade = new ScraperFacadeImpl();

    private ScraperFacadeImpl() {
        super();
        Map utility = new HashMap();
        utility.put("fn", new Function());
        utility.put("web", new WebUtility());
        utility.put("file", new FileUtility());
        utility.put("locator", SpringLocator.getApplicationContext());
        super.put("utility", utility);
    }

    public static ScraperFacadeImpl getInstance() {
        return facade;
    }
}
